package root.electronclass.electronclass.mvp;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import root.electronclass.electronclass.mvp.entity.EcardInfo;
import root.electronclass.electronclass.mvp.entity.OrgSchoolInfoVO;
import root.electronclass.electronclass.mvp.entity.UserInfoStudent;
import root.electronclass.electronclass.grade.model.PersonLoginResult;

/**
 * 页面：
 */
public class GlobalParameter {
    public final static String Web_url = "https://web.zf.zjbenti.com/dzbp/appweb/";

    private static OrgSchoolInfoVO SCHOOL_INFO;//学校信息
    private static EcardInfo ECARD_INFO;//班牌信息
    private static UserInfoStudent STUDENT;//学生信息
    private static String deviceCode;//设备编号
    private static int eventType;
    private static String cardNum;


    /**
     * 当前认证的用户INFO（一次性的可能）
     */
    private static PersonLoginResult personLoginResult;

    public static OrgSchoolInfoVO getSchoolInfo() {
        return SCHOOL_INFO;
    }

    public static void setSchoolInfo(OrgSchoolInfoVO schoolInfo) {
        SCHOOL_INFO = schoolInfo;
    }

    public static EcardInfo getEcardInfo() {
        return ECARD_INFO;
    }

    public static void setEcardInfo(EcardInfo ecardInfo) {
        ECARD_INFO = ecardInfo;
    }

    public static UserInfoStudent getSTUDENT() {
        return STUDENT;
    }

    public static void setSTUDENT(UserInfoStudent STUDENT) {
        GlobalParameter.STUDENT = STUDENT;
    }

    @Nullable
    public static PersonLoginResult getPersonLoginResult() {
        return personLoginResult;
    }

    public static void setPersonLoginResult(PersonLoginResult personLoginResult) {
        GlobalParameter.personLoginResult = personLoginResult;
    }

    public static String getCardNum() {
        return cardNum;
    }

    public static void setCardNum(String cardNum) {
        GlobalParameter.cardNum = cardNum;
    }

    public static int getEventType() {
        return eventType;
    }

    public static void setEventType(int eventType) {
        GlobalParameter.eventType = eventType;
    }

    public static String getDeviceCode() {
        return deviceCode;
    }

    public static void setDeviceCode(String deviceCode) {
        GlobalParameter.deviceCode = deviceCode;
    }

}
